package net.lanelife.casino.cms.web.controller;

import net.lanelife.casino.caipiao.dto.admin.QuotaRecordDTO;
import net.lanelife.casino.caipiao.dto.admin.QuotaRecordTable;
import net.lanelife.casino.caipiao.entity.QuotaRecord;
import net.lanelife.casino.caipiao.service.api.IQuotaRecordService;
import net.lanelife.casino.cms.web.controller.support.CRUDController;
import net.lanelife.casino.common.dto.support.GenericDTO;
import net.lanelife.casino.common.service.support.IGenericService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = QuotaRecordController.PATH)
public class QuotaRecordController extends CRUDController<QuotaRecord, Integer, QuotaRecordDTO, GenericDTO<Integer>, GenericDTO<Integer>, QuotaRecordTable<QuotaRecordDTO>> {
	
	public static final String PATH = "/quota-record";
	
	public QuotaRecordController() {
		super(PATH);
	}

	@Autowired
	private IQuotaRecordService quotaRecordService;
	
	@Override
	protected IGenericService<QuotaRecord, Integer> getService() {
		return quotaRecordService;
	}

}
